.rule-editor-help-content-container {
  font-size: var(--requestly-font-size-md, 14px);
  line-height: 22px;
  padding: 1rem;
}

.rule-editor-help-content {
  height: 80vh;
  overflow: auto;
}

.rule-editor-help-header {
  padding: 0 4px 8px 0;
}

.rule-editor-help-back-btn.ant-btn {
  margin-left: -6px;
}

.rule-editor-docs-close-btn.ant-btn {
  margin-right: -6px;
}

.rule-editor-help-back-btn.ant-btn,
.rule-editor-help-close-btn.ant-btn,
.rule-editor-docs-close-btn.ant-btn {
  padding: 6px;
  border: none;
  width: max-content;
  height: max-content;
}

.rule-editor-help-close-btn.ant-btn {
  padding: 2px;
  color: var(--requestly-color-text-subtle, #bbb);
}

.rule-editor-help-close-btn.ant-btn svg {
  width: 18px;
  height: 18px;
}

.rule-editor-help-back-btn.ant-btn:hover,
.rule-editor-help-close-btn.ant-btn:hover,
.rule-editor-docs-close-btn.ant-btn:hover {
  opacity: 0.7;
}

.rule-editor-help-container ul,
.rule-editor-help-container li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-editor-docs ul,
.rule-editor-docs ol {
  padding-left: 14px;
  padding-right: 5px;
}

.rule-editor-docs li {
  margin-bottom: 4px;
}

.rule-editor-help-lists {
  // height: 80vh;
  overflow: hidden;
}

.rule-editor-help-lists:hover {
  overflow: auto;
}

.rule-editor-help-lists li {
  margin-right: 1.25rem;
}

.rule-editor-help-back-btn {
  margin-right: 8px;
}

.rule-editor-help-title {
  font-weight: 500;
  line-height: 150%; /* 19.5px */
  font-size: var(--requestly-font-size-sm);
  color: var(--requestly-color-text-default, #fff);
  margin: 1.25rem 0 12px 0;
}

.rule-editor-help-title .anticon {
  margin-right: 5px;
}

.rule-editor-help-list.external-links {
  padding-left: 17px;
}

.rule-editor-help-list.external-links li {
  margin: 12px 0;
}

.rule-editor-help-list.external-links a {
  font-size: var(--requestly-font-size-xs);
  color: var(--requestly-color-text-default);
  line-height: 14.06px;
  display: inline-flex;
  align-items: center;
  column-gap: 5px;
}

.rule-editor-help-list.external-links a svg {
  width: 10px;
  height: 10px;
}

.rule-editor-help-list .ant-btn {
  width: 100%;
  padding: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  height: auto;
  display: inline-flex;
  justify-content: flex-start;
}

.rule-editor-help-list .ant-btn span {
  line-height: 15.23px;
}

.rule-editor-help-list li:last-child .ant-btn {
  margin-bottom: 0;
}

.rule-editor-help-footer {
  margin-top: 10px;
  padding: 8px 1.25rem;
}
/* docs */
.rule-editor-docs-intro {
  margin-top: 10px;
}

.docs-section {
  margin-top: 1.75rem;
}

.docs-section .title {
  margin-bottom: 12px;
}

.rule-editor-docs img,
.rule-editor-docs-demo-video iframe {
  width: 95%;
  aspect-ratio: 2/1;
  block-size: auto;
  max-inline-size: 100%;
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-md);
}

.rule-editor-docs img {
  border: none;
  aspect-ratio: auto;
  user-select: none;
}

.rule-editor-docs-image [data-rmiz-modal-overlay="hidden"] {
  background-color: rgba(13, 13, 16, 0);
}

.rule-editor-docs-image [data-rmiz-modal-overlay="visible"] {
  background-color: rgba(13, 13, 16, 0.85);
}

/* faqs collapse */
.rule-editor-docs-faqs {
  margin-right: 11px;
  margin-bottom: 2rem;
}

.rule-editor-docs-faqs-collapse.ant-collapse .ant-collapse-item,
.rule-editor-docs-faqs-collapse.ant-collapse .ant-collapse-item .ant-collapse-content {
  background-color: transparent;
}

.rule-editor-docs-faqs-collapse.ant-collapse .ant-collapse-item:last-child {
  border-bottom: 1px solid var(--border-dark);
}

.rule-editor-docs-faqs-collapse.ant-collapse .ant-collapse-item .ant-collapse-header-text {
  max-width: 94%;
  font-size: var(--requestly-font-size-sm, 13px);
  font-weight: 500;
}

.rule-editor-docs-faqs-collapse.ant-collapse .ant-collapse-item .ant-collapse-content p {
  font-size: var(--requestly-font-size-sm, 13px);
  margin-bottom: 0;
}

/* NEW STYLES FOR DOCS FROM NOTION*/

.rule-editor-docs .notion {
  overflow-x: hidden;
}
.rule-editor-docs .notion .notion-h1 {
  font-size: 18px;
  line-height: 1.625rem;
  font-weight: 500;
  color: var(--requestly-color-text-default);
  padding-left: 0;
  margin-bottom: 8px;
}
.rule-editor-docs .notion .notion-h3 {
  font-size: var(--requestly-font-size-md, 14px);
}
.rule-editor-docs .notion .notion-h2 {
  font-size: 15px;
  margin-bottom: 5px;
}

.rule-editor-docs .notion .notion-text {
  color: var(--text-gray);
  font-size: var(--requestly-font-size-md, 14px);
  line-height: 22px;
}
.rule-editor-docs .notion .notion-list {
  padding-left: 0;
  color: var(--text-gray);
  font-size: var(--requestly-font-size-md, 14px);
}
.rule-editor-docs .notion a {
  color: #3ba0ff;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition: color 0.3s;
}
.rule-editor-docs .notion a:hover {
  color: #2051b4;
}
.rule-editor-docs .notion .notion-toggle:not(:first-child) {
  margin-top: 14px;
}

.rule-editor-docs .notion .notion-toggle summary {
  font-size: var(--requestly-font-size-md, 14px);
}

.rule-editor-docs .notion b {
  font-weight: 500;
  color: var(--requestly-color-text-default);
}

.rule-editor-doc-skeleton .ant-skeleton-content .ant-skeleton-paragraph > li {
  height: 40px;
}

.rule-editor-doc-skeleton .ant-skeleton-content .ant-skeleton-title {
  display: none;
}

.rule-editor-help-container {
  .rule-details-panel-container {
    margin: 0;
    padding: 16px 4px 0 0;
    margin-bottom: 16px;
    background-color: transparent;

    .close-btn {
      display: none;
    }

    .details-panel {
      .rule-details-container {
        border-right: none;

        .links {
          display: flex;
          flex-direction: column;
          gap: 8px;

          .ant-btn {
            margin-right: auto;
          }
        }
      }
    }
  }
}
